﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/AdminTemplate.Master" AutoEventWireup="true" CodeBehind="CurrentBookings.aspx.cs" Inherits="HotelProject.CurrentBookings" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="imageMap" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
<asp:ScriptManager runat="server">
                </asp:ScriptManager>
 <div id="homePageContainer">
        <div id="homePageContent">
        <img name="admin" src="../../Images/background.jpg" width="838" height="632" border="0" id="admin" usemap="#default" alt="" />
        <div id="adminSubPage"> 
            <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
                AllowSorting="True" AutoGenerateColumns="False" 
                BackColor="LightGoldenrodYellow" BorderColor="Tan" BorderWidth="1px" 
                CellPadding="2" DataKeyNames="ID" DataSourceID="EntityDataSource1" 
                ForeColor="Black" GridLines="None" Width="816px">
                <AlternatingRowStyle BackColor="PaleGoldenrod" />
                <Columns>
                    <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" >
                    <ControlStyle CssClass="gridViewEditFieldWidth" />
                    </asp:CommandField>
                    <asp:BoundField DataField="ID" HeaderText="Booking ID" ReadOnly="True" 
                        SortExpression="ID" >
                    <ControlStyle CssClass="gridViewEditFieldWidth" />
                    </asp:BoundField>
                    <asp:BoundField DataField="hotelID" HeaderText="Hotel" 
                        SortExpression="hotelID" >
                    <ControlStyle CssClass="gridViewEditFieldWidth" />
                    </asp:BoundField>
                    <asp:BoundField DataField="roomID" HeaderText="Room ID" 
                        SortExpression="roomID" >
                    <ControlStyle CssClass="gridViewEditFieldWidth" />
                    </asp:BoundField>
                    <asp:BoundField DataField="startDate" DataFormatString="{0:M-dd-yyyy}" 
                        HeaderText="Check In" SortExpression="startDate" >
                    <ControlStyle CssClass="gridViewCalendarWidth" />
                    </asp:BoundField>
                    <asp:BoundField DataField="endDate" DataFormatString="{0:M-dd-yyyy}" 
                        HeaderText="Check Out" SortExpression="endDate" >
                    <ControlStyle CssClass="gridViewCalendarWidth" />
                    </asp:BoundField>
                    <asp:BoundField DataField="totalCost" HeaderText="Total Cost" 
                        SortExpression="totalCost" >
                    <ControlStyle CssClass="gridViewEditFieldWidth" />
                    </asp:BoundField>
                    <asp:BoundField DataField="userName" HeaderText="User Name" 
                        SortExpression="userName" >
                    <ControlStyle CssClass="gridViewEditFieldWidth" />
                    </asp:BoundField>
                </Columns>
                <FooterStyle BackColor="Tan" />
                <HeaderStyle BackColor="Tan" Font-Bold="True" />
                <PagerStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue" 
                    HorizontalAlign="Center" />
                <SelectedRowStyle BackColor="DarkSlateBlue" ForeColor="GhostWhite" />
                <SortedAscendingCellStyle BackColor="#FAFAE7" />
                <SortedAscendingHeaderStyle BackColor="#DAC09E" />
                <SortedDescendingCellStyle BackColor="#E1DB9C" />
                <SortedDescendingHeaderStyle BackColor="#C2A47B" />
            </asp:GridView>
            <asp:EntityDataSource ID="EntityDataSource1" runat="server" 
                ConnectionString="name=bshrews2Entities" 
                DefaultContainerName="bshrews2Entities" EnableDelete="True" 
                EnableFlattening="False" EnableInsert="True" EnableUpdate="True" 
                EntitySetName="bookings">
                
            </asp:EntityDataSource>
            </div>
        </div>
       </div>
</asp:Content>
